using System;
using SqlSugar;
using System.Text.Json.Serialization;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Lan.Models
{
	/// <summary>
	/// 系统列
	/// </summary>
    public class XT_Column
    {
		/// <summary>
		/// 主键
		/// </summary>
		[SugarColumn(IsPrimaryKey = true)]
		public Guid Id { get; set; }

		/// <summary>
		/// 表主键
		/// </summary>
		public Guid TableId { get; set; }

		/// <summary>
		/// 列名
		/// </summary>
		public string ColumnName { get; set; }

		/// <summary>
		/// 列注释
		/// </summary>
		public string ColumnDescription { get; set; }

		/// <summary>
		/// 列类型
		/// </summary>
		public string ColumnType { get; set; }

		/// <summary>
		/// 最大长度
		/// </summary>
		public int MaxLength { get; set; }

		/// <summary>
		/// 最小长度
		/// </summary>
		public int MinLength { get; set; }

		/// <summary>
		/// 是主键
		/// </summary>
		public bool IsKey { get; set; }

		/// <summary>
		/// 是空
		/// </summary>
		public bool IsNull { get; set; }

		/// <summary>
		/// 忽略表字段
		/// </summary>
		public bool DbIgnore { get; set; }

		/// <summary>
		/// 忽略UI字段
		/// </summary>
		public bool WebIgnore { get; set; }
    }
}